/*
 * Copyright (c) 2015 www.smarthome.com All rights reserved. 本软件源代码版权归----所有,未经许可不得任意复制与传播.
 */
package com.smarthome.base.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.smarthome.base.dao.ShUserRoleResourceDao;
import com.smarthome.base.dao.base.BaseDao;
import com.smarthome.base.service.ShUserRoleResourceService;
import com.smarthome.base.service.base.BaseServiceImpl;
import com.smarthome.domain.bean.ShUserRoleResource;

/**
 * ShUserRoleResourceService 实现类
 * @author KongXiangyu
 * @since 2015-09-07
 */
@Service("shUserRoleResourceService")
public class ShUserRoleResourceServiceImpl extends BaseServiceImpl<ShUserRoleResource, Long> implements ShUserRoleResourceService {

    @Resource
    private ShUserRoleResourceDao shUserRoleResourceDao;

    public BaseDao<ShUserRoleResource, Long> getDao() {
        return shUserRoleResourceDao;
    }

	/* (non-Javadoc)
	 * @see com.smarthome.base.service.ShUserRoleResourceService#deleteByRoleId(java.lang.Long)
	 */
	@Override
	public int deleteByRoleId(Long ... roleId) {
		return shUserRoleResourceDao.deleteByUserRoleId(roleId);
	}

	/* (non-Javadoc)
	 * @see com.smarthome.base.service.ShUserRoleResourceService#selectEntryListByRoleId(java.lang.Long[])
	 */
	@Override
	public List<ShUserRoleResource> selectEntryListByRoleId(Long... roleIds) {
		// TODO Auto-generated method stub
		return shUserRoleResourceDao.selectEntryListByRoleId(roleIds);
	}

}